package com.demo.model;

import java.math.BigInteger;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 杨森
 * @since 2022-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
public class OrderLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单日志id
     */
    @TableId(value = "order_logid", type = IdType.AUTO)
    private Integer orderLogid;

    /**
     * 订单id
     */
    private BigInteger orderId;

    /**
     * 操作详情
     */
    private String orderLog;

    /**
     * 操作人id
     */
    private Integer userId;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 逻辑删除
     */
    @TableField("Is_Deleted")
    private Integer isDeleted;

    /**
     * 版本号
     */
    private String version;


}
